﻿<UserControl xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"  x:Class="SilverlightTouchBehaviorsSampleApp.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" 
     
    xmlns:tanagram="clr-namespace:Tanagram.Behaviors.Touch.Silverlight;assembly=Tanagram.Behaviors.Touch.Silverlight"  
    xmlns:uc="clr-namespace:SilverlightTouchBehaviorsSampleApp"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
    <controls:TabControl >
        <controls:TabItem Header="TranslateRotateScaleBehavior">
            <Canvas Margin="10">
                <i:Interaction.Behaviors>
                    <tanagram:AutoClipBehavior/>
                </i:Interaction.Behaviors>
                <Canvas.Background>
                    <LinearGradientBrush StartPoint=".2,0" EndPoint=".7,1">
                        <GradientStop Color="Black" Offset="0"/>
                        <GradientStop Color="DarkSlateGray" Offset="1"/>
                    </LinearGradientBrush>
                </Canvas.Background>
                <Image Name="Image1" Source="Images/Koala.jpg">
                    <i:Interaction.Behaviors>
                        <tanagram:TranslateRotateScaleBehavior XLocation="100" YLocation="100" MinimumScale="200" MaximumScale="1000"/>
                    </i:Interaction.Behaviors>
                </Image>
                <Image Name="Image2" Source="Images/Penguins.jpg">
                    <i:Interaction.Behaviors>
                        <tanagram:TranslateRotateScaleBehavior XLocation="200" YLocation="200" MinimumScale="200" MaximumScale="300" />
                    </i:Interaction.Behaviors>
                </Image>
                <uc:EllipseItem x:Name="Ellipse1">
                    <i:Interaction.Behaviors>
                        <tanagram:TranslateRotateScaleBehavior 
                            XLocation="300" 
                            YLocation="300" 
                            MinimumScale="100" 
                            MaximumScale="650"
                        />
                    </i:Interaction.Behaviors>
                </uc:EllipseItem>
            </Canvas>
        </controls:TabItem>
        <controls:TabItem Header="TouchScrollBehavior">
            <Grid>
                <ListBox>
                    <i:Interaction.Behaviors>
                        <tanagram:TouchScrollBehavior/>
                    </i:Interaction.Behaviors>
                    <ListBoxItem Content="String goes here1"></ListBoxItem>
                    <ListBoxItem Content="String goes here2"></ListBoxItem>
                    <ListBoxItem Content="String goes here3"></ListBoxItem>
                    <ListBoxItem Content="String goes here4"></ListBoxItem>
                    <ListBoxItem Content="String goes here5"></ListBoxItem>
                    <ListBoxItem Content="String goes here6"></ListBoxItem>
                    <ListBoxItem Content="String goes here7"></ListBoxItem>
                    <ListBoxItem Content="String goes here8"></ListBoxItem>
                    <ListBoxItem Content="String goes here9"></ListBoxItem>
                    <ListBoxItem Content="String goes here10"></ListBoxItem>
                    <ListBoxItem Content="String goes here1"></ListBoxItem>
                    <ListBoxItem Content="String goes here2"></ListBoxItem>
                    <ListBoxItem Content="String goes here3"></ListBoxItem>
                    <ListBoxItem Content="String goes here4"></ListBoxItem>
                    <ListBoxItem Content="String goes here5"></ListBoxItem>
                    <ListBoxItem Content="String goes here6"></ListBoxItem>
                    <ListBoxItem Content="String goes here7"></ListBoxItem>
                    <ListBoxItem Content="String goes here8"></ListBoxItem>
                    <ListBoxItem Content="String goes here9"></ListBoxItem>
                    <ListBoxItem Content="String goes here10"></ListBoxItem>
                    <ListBoxItem Content="String goes here1"></ListBoxItem>
                    <ListBoxItem Content="String goes here2"></ListBoxItem>
                    <ListBoxItem Content="String goes here3"></ListBoxItem>
                    <ListBoxItem Content="String goes here4"></ListBoxItem>
                    <ListBoxItem Content="String goes here5"></ListBoxItem>
                    <ListBoxItem Content="String goes here6"></ListBoxItem>
                    <ListBoxItem Content="String goes here7"></ListBoxItem>
                    <ListBoxItem Content="String goes here8"></ListBoxItem>
                    <ListBoxItem Content="String goes here9"></ListBoxItem>
                    <ListBoxItem Content="String goes here10"></ListBoxItem>
                    <ListBoxItem Content="String goes here1"></ListBoxItem>
                    <ListBoxItem Content="String goes here2"></ListBoxItem>
                    <ListBoxItem Content="String goes here3"></ListBoxItem>
                    <ListBoxItem Content="String goes here4"></ListBoxItem>
                    <ListBoxItem Content="String goes here5"></ListBoxItem>
                    <ListBoxItem Content="String goes here6"></ListBoxItem>
                    <ListBoxItem Content="String goes here7"></ListBoxItem>
                    <ListBoxItem Content="String goes here8"></ListBoxItem>
                    <ListBoxItem Content="String goes here9"></ListBoxItem>
                    <ListBoxItem Content="String goes here10"></ListBoxItem>
                    <ListBoxItem Content="String goes here1"></ListBoxItem>
                    <ListBoxItem Content="String goes here2"></ListBoxItem>
                    <ListBoxItem Content="String goes here3"></ListBoxItem>
                    <ListBoxItem Content="String goes here4"></ListBoxItem>
                    <ListBoxItem Content="String goes here5"></ListBoxItem>
                    <ListBoxItem Content="String goes here6"></ListBoxItem>
                    <ListBoxItem Content="String goes here7"></ListBoxItem>
                    <ListBoxItem Content="String goes here8"></ListBoxItem>
                    <ListBoxItem Content="String goes here9"></ListBoxItem>
                    <ListBoxItem Content="String goes here10"></ListBoxItem>
                    <ListBoxItem Content="String goes here1"></ListBoxItem>
                    <ListBoxItem Content="String goes here2"></ListBoxItem>
                    <ListBoxItem Content="String goes here3"></ListBoxItem>
                    <ListBoxItem Content="String goes here4"></ListBoxItem>
                    <ListBoxItem Content="String goes here5"></ListBoxItem>
                    <ListBoxItem Content="String goes here6"></ListBoxItem>
                    <ListBoxItem Content="String goes here7"></ListBoxItem>
                    <ListBoxItem Content="String goes here8"></ListBoxItem>
                    <ListBoxItem Content="String goes here9"></ListBoxItem>
                    <ListBoxItem Content="String goes here10"></ListBoxItem>
                    <ListBoxItem Content="String goes here1"></ListBoxItem>
                    <ListBoxItem Content="String goes here2"></ListBoxItem>
                    <ListBoxItem Content="String goes here3"></ListBoxItem>
                    <ListBoxItem Content="String goes here4"></ListBoxItem>
                    <ListBoxItem Content="String goes here5"></ListBoxItem>
                    <ListBoxItem Content="String goes here6"></ListBoxItem>
                    <ListBoxItem Content="String goes here7"></ListBoxItem>
                    <ListBoxItem Content="String goes here8"></ListBoxItem>
                    <ListBoxItem Content="String goes here9"></ListBoxItem>
                    <ListBoxItem Content="String goes here10"></ListBoxItem>
                    <ListBoxItem Content="String goes here1"></ListBoxItem>
                    <ListBoxItem Content="String goes here2"></ListBoxItem>
                    <ListBoxItem Content="String goes here3"></ListBoxItem>
                    <ListBoxItem Content="String goes here4"></ListBoxItem>
                    <ListBoxItem Content="String goes here5"></ListBoxItem>
                    <ListBoxItem Content="String goes here6"></ListBoxItem>
                    <ListBoxItem Content="String goes here7"></ListBoxItem>
                    <ListBoxItem Content="String goes here8"></ListBoxItem>
                    <ListBoxItem Content="String goes here9"></ListBoxItem>
                    <ListBoxItem Content="String goes here10"></ListBoxItem>
                    <Image Source="images/Koala.jpg" Height="50" Width="50"/>
                    <Image Source="images/Penguins.jpg" Height="50" Width="50"/>                    
                </ListBox>
            </Grid>
        </controls:TabItem>
    </controls:TabControl>
</UserControl>
